public  abstract class test {
    abstract public void draw();
//    abstract void calArea();
    protected double area;
    public double GetArea(){
        return area;
    }
}
class Rect extends test{
    private double length;
    private double width;
    public Rect(double length,double width){
        this.length=length;
    }
    public void draw(){
        System.out.println();
    }
    public double getArea(){
        area=length*width;
        return area;
    }
}
